﻿using System;
using System.Data;

namespace ZhimeiSoft.CharmManager.DOL
{
    public class DBEntityServiceItemCategory : DBEntityBase
    {
        public override string GetTableName()
        {
            return "SERVICEITEMCATEGORY";
        }
        public DBEntityServiceItemCategory()
            : base()
        {
        }

        public DBEntityServiceItemCategory(DataRow drRow)
        {
            this.SCATEGORYID = Convert.ToInt32(drRow[DBEntityServiceItemCategory.FieldName.SCATEGORYID]);
            this.SNAME = drRow[DBEntityServiceItemCategory.FieldName.SNAME].ToString();
            this.SPARENTCATEGORYID = Convert.ToInt32(drRow[DBEntityServiceItemCategory.FieldName.SPARENTCATEGORYID]);
        }

        /// <summary>
        /// 分类ID
        /// </summary>
        public int SCATEGORYID { get; set; }

        /// <summary>
        /// 分类名称
        /// </summary>
        public string SNAME { get; set; }

        /// <summary>
        /// 父分类ID
        /// </summary>
        public int SPARENTCATEGORYID { get; set; }

        
        /// <summary>
        /// 字段名称
        /// </summary>
        public static class FieldName
        {
            /// <summary>
            /// 分类ID
            /// </summary>
            public const string SCATEGORYID = "SCATEGORYID";

            /// <summary>
            /// 分类名称
            /// </summary>
            public const string SNAME = "SNAME";

            /// <summary>
            /// 父分类ID
            /// </summary>
            public const string SPARENTCATEGORYID = "SPARENTCATEGORYID";

        }
    }
}
